package com.d0326;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Vector;

public class TestCollections {
    public static void main(String[] args) {
        List<Integer>list=new Vector<>();
        list.add(11);
        list.add(10);
        list.add(99);
        Collections.sort(list);
        for (Integer i:list
             ) {
            System.out.println(i);
        }
        list.forEach(integer -> System.out.println(integer));
    }
}
